import request from '@/utils/request'
import Vue from 'vue'
// 获取订单列表
export const queryDisputeInfo = data => {
    return request({
        url: Vue.prototype.$api.dispute.detail,
        method: 'post',
        data,
    })
}
// 获取订单列表
export const queryDisputeList = data => {
    return request({
        url: Vue.prototype.$api.dispute.index,
        method: 'post',
        data,
    })
}
// 订单导出
export const exportDispute = data => {
    return request({
        url: Vue.prototype.$api.dispute.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 获取订单列表
export const queryOrderList = data => {
    return request({
        url: Vue.prototype.$api.order.index,
        method: 'post',
        data,
    })
}
export const queryOrderRefundList = data => {
    return request({
        url: Vue.prototype.$api.orderRefund.index,
        method: 'post',
        data,
    })
}
// 获取订单详情
export const queryOrderDetail = data => {
    return request({
        url: Vue.prototype.$api.order.detail,
        method: 'post',
        data,
    })
}
// 订单导出
export const exportOrder = data => {
    return request({
        url: Vue.prototype.$api.order.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const exportOrderRefund = data => {
    return request({
        url: Vue.prototype.$api.orderRefund.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 获取反馈问题列表
export const getQuestionList = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.index,
        method: 'post',
        data,
    })
}
// 获取订单反馈详情
export const queryFeedback = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.detail,
        method: 'post',
        data,
    })
}
// 编辑订单反馈
export const editFeedback = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.edit,
        method: 'post',
        data,
    })
}
// 产品反馈列表
export const queryProductFeedbackList = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.product,
        method: 'post',
        data,
    })
}
export const exportProductFeedback = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 店铺反馈列表
export const queryStoreFeedbackList = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.shop,
        method: 'post',
        data,
    })
}
// 售后反馈列表
export const queryAfterSalesFeedbackList = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.sales,
        method: 'post',
        data,
    })
}

// 售后反馈列表
export const queryAfterSalesinfo = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.salesinfo,
        method: 'post',
        data,
    })
}

// 售后反馈列表
export const queryAfterSalesinfob = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.salesinfob,
        method: 'post',
        data,
    })
}

// 退款列表
export const queryRefundFeedbackList = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.Refundsales,
        method: 'post',
        data,
    })
}

// 订单反馈详情列表
export const queryOrderFeedbackList = data => {
    return request({
        url: Vue.prototype.$api.orderFeedback.order,
        method: 'post',
        data,
    })
}
// 获取每月预估值列表
export const queryOrderExchangeList = data => {
    return request({
        url: Vue.prototype.$api.orderExchange.index,
        method: 'post',
        data,
    })
}
// 获取每月预估值详情
export const queryOrderExchange = data => {
    return request({
        url: Vue.prototype.$api.orderExchange.detail,
        method: 'post',
        data,
    })
}
// 编辑每月预估值
export const editOrderExchange = data => {
    return request({
        url: Vue.prototype.$api.orderExchange.edit,
        method: 'post',
        data,
    })
}
// 获取每月成本任务列表
export const queryOrderCheckList = data => {
    return request({
        url: Vue.prototype.$api.orderCheck.index,
        method: 'post',
        data,
    })
}
// 获取每月成本任务详情
export const queryOrderCheck = data => {
    return request({
        url: Vue.prototype.$api.orderCheck.detail,
        method: 'post',
        data,
    })
}
// 编辑每月成本任务
export const editOrderCheck = data => {
    return request({
        url: Vue.prototype.$api.orderCheck.edit,
        method: 'post',
        data,
    })
}
// 新增每月成本任务
export const addOrderCheck = data => {
    return request({
        url: Vue.prototype.$api.orderCheck.add,
        method: 'post',
        data,
    })
}
// 获取争议成本列表
export const queryOrderCheckDisputeList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.index,
        method: 'post',
        data,
    })
}
// 争议成本导出
export const exportOrderCheckDispute = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 获取物流成本列表
export const queryOrderCheckLogisticsList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckLogistics.index,
        method: 'post',
        data,
    })
}
// 物流成本导出
export const exportOrderCheckLogistics = data => {
    return request({
        url: Vue.prototype.$api.orderCheckLogistics.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 获取采购成本列表
export const queryOrderCheckSpuList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSpu.index,
        method: 'post',
        data,
    })
}
export const exportOrderCheckSpuList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSpu.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// 获取采购成本详情
export const queryOrderCheckSpu = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSpu.detail,
        method: 'post',
        data,
    })
}
// 编辑采购成本
export const editOrderCheckSpu = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSpu.edit,
        method: 'post',
        data,
    })
}
// 获取采购成本列表
export const queryOrderCheckSkuList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSku.index,
        method: 'post',
        data,
    })
}
// 获取采购成本详情
export const queryOrderCheckSku = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSku.detail,
        method: 'post',
        data,
    })
}
// 编辑采购成本
export const editOrderCheckSku = data => {
    return request({
        url: Vue.prototype.$api.orderCheckSku.edit,
        method: 'post',
        data,
    })
}

// 获取订单余额交易列表
export const queryorderbalanceList = data => {
    return request({
        url: Vue.prototype.$api.orderbalance.index,
        method: 'post',
        data,
    })
}

// 导出订单余额交易列表
export const exportorderbalance = data => {
    return request({
        url: Vue.prototype.$api.orderbalance.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

export const PersonalInfo = data => {
    return request({
        url: Vue.prototype.$api.shop.queryMonthlyPersonalPersonalInfo,
        method: 'post',
        data,
    })
}

// 获取会话列表
export const queryReamazeList = data => {
    return request({
        url: Vue.prototype.$api.reamaze.index,
        method: 'post',
        data,
    })
}
// 会话导出
export const exportReamaze = data => {
    return request({
        url: Vue.prototype.$api.reamaze.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

// 未发货
export const queryorderunfulfilledList = data => {
    return request({
        url: Vue.prototype.$api.orderunfulfilled.index,
        method: 'post',
        data,
    })
}

// 物流轨迹
export const queryordertrackList = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.index,
        method: 'post',
        data,
    })
}
export const queryordertrackInfo = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.info,
        method: 'post',
        data,
    })
}
export const queryordertrackInfo718 = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.info718,
        method: 'post',
        data,
    })
}
export const queryOrderTrackInfo = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.trackinfo,
        method: 'post',
        data,
    })
}

// 导出订单余额交易列表
export const exportordertrack = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

export const getTrackList = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.get_track_status,
        method: 'post',
        data,
    })
}
export const getSubTrackList = data => {
    return request({
        url: Vue.prototype.$api.ordertrack.get_sub_track_status,
        method: 'post',
        data,
    })
}

export const queryGiftcardList = data => {
    return request({
        url: Vue.prototype.$api.giftcard.index,
        method: 'post',
        data,
    })
}
export const GiftcardAdd = data => {
    return request({
        url: Vue.prototype.$api.giftcard.add,
        method: 'post',
        data,
    })
}
export const exportGiftcard = data => {
    return request({
        url: Vue.prototype.$api.giftcard.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const queryGiftcardbatchList = data => {
    return request({
        url: Vue.prototype.$api.giftcard.batch,
        method: 'post',
        data,
    })
}
//queryCheckDisputeList
export const queryCheckDisputeList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.CheckDispute,
        method: 'post',
        data,
    })
}
export const StoreDisputeRate = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.StoreDisputeRate,
        method: 'post',
        data,
    })
}

export const exportCheckDispute = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.exportCheckDispute,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

export const queryConversaList = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.queryConversaList,
        method: 'post',
        data,
    })
}

export const queryAllOrderList = data => {
    return request({
        url: Vue.prototype.$api.order.orderList,
        method: 'post',
        data,
    })
}


//queryReportReamazeList
export const queryReportReamazeList = data => {
    return request({
        url: Vue.prototype.$api.ReportReamaze.index,
        method: 'post',
        data,
    })
}

export const exportReportReamaze = data => {
    return request({
        url: Vue.prototype.$api.ReportReamaze.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// getList
export const getOrderSplitList = data => {
    return request({
        url: Vue.prototype.$api.orderSplit.getList,
        method: 'post',
        data,
    })
}
// getExplodeDetail
export const getExplodeDetail = data => {
    return request({
        url: Vue.prototype.$api.orderSplit.getExplodeDetail,
        method: 'post',
        data,
    })
}
// exportOrderSplitInfo
export const exportOrderSplitInfo = data => {
    return request({
        url: Vue.prototype.$api.orderSplit.exportOrderSplitInfo,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// export_explode_info
export const export_explode_info = data => {
    return request({
        url: Vue.prototype.$api.orderSplit.export_explode_info,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
// updateOrderSplitChange
export const updateOrderSplitChange = data => {
    return request({
        url: Vue.prototype.$api.orderSplit.updateOrderSplitChange,
        method: 'post',
        data,
    })
}
// splitOrder
export const splitOrder = data => {
    return request({
        url: Vue.prototype.$api.orderSplit.splitOrder,
        method: 'post',
        data,
    })
}
export const querycommentList = data => {
    return request({
        url: Vue.prototype.$api.order.querycommentList,
        method: 'post',
        data,
    })
}
export const exportcomment = data => {
    return request({
        url: Vue.prototype.$api.order.exportcomment,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const import_url = data => {
    return request({
        url: Vue.prototype.$api.order.import_url,
        method: 'post',
        data,
    })
}
export const ReviewsDeleteSpu = data => {
    return request({
        url: Vue.prototype.$api.order.ReviewsDeleteSpu,
        method: 'post',
        data,
    })
}



export const queryOfflineorderList = data => {
    return request({
        url: Vue.prototype.$api.Offlineorder.index,
        method: 'post',
        data,
    })
}
export const exportOfflineorder = data => {
    return request({
        url: Vue.prototype.$api.Offlineorder.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}


export const queryWarehouseEntryList = data => {
    return request({
        url: Vue.prototype.$api.WarehouseEntry.index,
        method: 'post',
        data,
    })
}
export const exportWarehouseEntry = data => {
    return request({
        url: Vue.prototype.$api.WarehouseEntry.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}


export const queryDailyQuantityList = data => {
    return request({
        url: Vue.prototype.$api.DailyQuantity.index,
        method: 'post',
        data,
    })
}
export const exportDailyQuantity = data => {
    return request({
        url: Vue.prototype.$api.DailyQuantity.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const queryDailyQuantityInfo = data => {
    return request({
        url: Vue.prototype.$api.DailyQuantity.info,
        method: 'post',
        data,
    })
}
export const querygetStock = data => {
    return request({
        url: Vue.prototype.$api.querygetStock.index,
        method: 'post',
        data,
    })
}

// tiktok发货
export const queryAutoshipping = data => {
    return request({
        url: Vue.prototype.$api.Autoshipping.index,
        method: 'post',
        data,
    })
}
export const AutoshippingEdit = data => {
    return request({
        url: Vue.prototype.$api.Autoshipping.edit,
        method: 'post',
        data,
    })
}
export const AutoshippingInfo = data => {
    return request({
        url: Vue.prototype.$api.Autoshipping.find,
        method: 'post',
        data,
    })
}
export const exportAutoshipping = data => {
    return request({
        url: Vue.prototype.$api.Autoshipping.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}


// 物流轨迹
export const queryorderValidityList = data => {
    return request({
        url: Vue.prototype.$api.orderValidity.index,
        method: 'post',
        data,
    })
}
// 订单导出
export const exportorderValidity = data => {
    return request({
        url: Vue.prototype.$api.orderValidity.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const Unmatcheds = data => {
    return request({
        url: Vue.prototype.$api.orderCheckDispute.Unmatcheds,
        method: 'post',
        data,
    })
}

export const StoreRefundRate = data => {
    return request({
        url: Vue.prototype.$api.orderRefund.StoreRefundRate,
        method: 'post',
        data,
    })
}